
object Test {
  println("单例对象代码！！！！")

  def printInfo={
    println("Hello scala Object")
  }
}

object ObjectDemo {
  def main(args: Array[String]): Unit = {
    val test = Test
    val test1 = Test

  }
}

